VAR
 a,b,c:longint;

 procedure swap(var x,y:longint);
 begin
  c:=x;
  x:=y;
  y:=c;
 end;

BEGIN
 readln(a,b);
if (a>0) and (b>0) then
 if ((odd(a)) and (not odd(b))) or ((odd(b)) and (not odd(a))) then swap(a,b);
 writeln(a,' ',b);
END.